home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2006 December
/
chip-cd_2006_12.zip
/
12
/
Pakiet internetowy
/
Klienci FTP
/
Staff-FTP 2.91
/
sftp_setup.exe
/
{app}
/
Scripts
/
AutoNuker.scr
next >
Wrap
Text File
|
2003-12-12
|
3KB
|
105 lines
#- AutoNuker by FanTie
#- this is just an examble on how it will work
#-
#- This Script will login into some servers and nuke releases just as on other servers.
#- It works only on glftpd-sites (the nuke-reson-extracter).
#- Usefull for lazy nukers/Siteops
#-
# Servers wich nuke releases regulary (seperated by ;)
# Use the names u have entered in SiteManager
var nuke_servers="site1;site2;site3"
# Your Server where you want to nuke
var do_nuke_server="mysite1;mysite2"
# How many nukes you want to scan for?
var how_many_to_chk=100
# If a nuke-reason matches one of those masks then skip it
var dont_nuke_reason_mask=*pda*|test
# Nuke how many times?
var nuke_ratio=1
###########################################################################
### END OF CONFIG
###########################################################################
#for every nuke_server...
for server1_url in $nuke_servers
for server2_url in $do_nuke_server
#connect to server1
select ftp
if ftp.sitename <> $server1_url
connect SITEMANAGER $server1_url
end
if ftp.connected =false
connect SITEMANAGER $server1_url
end
#connect to server2
select fxp
if fxp.sitename <> $server2_url
connect SITEMANAGER $server2_url
end
if fxp.connected =false
connect SITEMANAGER $server2_url
end
#collect nukes
select ftp
var nuke_log=FTPCMD site nukes $how_many_to_chk
#set reason to zero
var reason=
#search on site
select fxp
for line in $nuke_log; do
var nukedir=GETPART "$line" "2" "Dir:"
var nukedir=GETPART "$nukedir" "1" "|"
#make sure its a valid directory (needs some more checks maybe)
if $nukedir = *-*;*.*;*_*
#make sure the reason is not empty aswell
if $reason !=
#search on site for that nuke (sometimes cutted at end)
var search=FTPCMD site search $nukedir
#dont go on if its already nuked
if $search != *NUKED*
#continue if search was successfull
if $search != * 0 directories found*
#extract real directory
var realdir=GETPART "$search" "2" "200- /"
var realdir=GETPART "$realdir" "1" " ("
#if real-dir isnt empty...
if $dir2 !=
#go to that dir
cwd /$realdir/..
refresh
#select that dir...
select mask $nukedir*
var seldir=selection
#nuke it
for item in $seldir
site nuke $item $nuke_ratio $reason
end
end
end
end
end
end
#extract reason
var reason=getpart "$line" "5" "|"
if $reason=$dont_nuke_reason_mask
var reason=
end
end
end
end